GETOPT_ARGS=`getopt -o k:p: -al key:password: -- "$@"`
eval set -- "$GETOPT_ARGS"
while [ -n "$1" ]
do
   case "$1" in
      -k|--key) test -z $2 || key=$2; shift 2;;
      -p|--password) test -z $2 || password=$2; shift 2;;
      --) break;;
      *) echo $1 , $2; shift 1;;
   esac
done

java -jar haydn-delivercore-agent-1.0.0.jar encrypt $key $password
